package com.dgut.hisystem.service;

import com.dgut.hisystem.entity.User;

import java.util.List;

public interface UserService {
    User getUserById(long id);
    User getUserByPhone(long phone);
    void insert(User user);
    void update(User user);
    void delete(long id);
    List<User> search();

    void deleteByPhone(long phone);
    void deleteByIdCard(String idCard);

    User getUserByIdCard(String idCard);
    User get(User user);
}
